package com.feinno.urcs.group.siptask.task;

import com.feinno.superpojo.SuperPojo;
import com.feinno.superpojo.annotation.Field;
import com.feinno.urcs.group.entity.GroupIndex;
import com.feinno.urcs.types.MobileNo;
import org.helium.framework.task.DedicatedTaskArgs;

/**
 * @author Li.Hongbo <lihongbo@feinno.com>
 */
public class GroupByeArgs extends SuperPojo implements DedicatedTaskArgs {


	@Field(id = 1)
	private int groupId;

	@Field(id = 2)
	private MobileNo toMember;

	@Field(id = 3)
	private int cause;

	@Field(id = 4)
	private String text;

	@Field(id = 5)
	private boolean onlyClean =false;

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getCause() {
		return cause;
	}

	public void setCause(int cause) {
		this.cause = cause;
	}

//	public GroupIndex getGroupIndex() {
//		return groupIndex;
//	}
//
//	public void setGroupIndex(GroupIndex groupIndex) {
//		this.groupIndex = groupIndex;
//	}

	public MobileNo getToMember() {
		return toMember;
	}

	public void setToMember(MobileNo toMember) {
		this.toMember = toMember;
	}
	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	@Override
	public Object getTag() {
		return TagGenerator.generateTaskTag(toMember,groupId);
	}

	public boolean isOnlyClean() {
		return onlyClean;
	}

	public void setOnlyClean(boolean onlyClean) {
		this.onlyClean = onlyClean;
	}
}